import http from "@/utils/http";
const contestQuery = {
  // 查询考试开始时间
  queryStartTime: (data: any) => {
    return http.post("/ctfcontest/queryStartTime", data);
  },
  queryRange: (data: any) => {
    return http.post("/range/queryRange", data);
  },
  queryContest: (data: any) => {
    return http.get("/ctfcontest/searchByUserId" + "?userId=" + data);
  },
  queryEndTime: (data: any) => {
    return http.post("/ctfcontest/queryEndTime", data);
  },
  startContainer: (data: any) => {
    return http.post("/ctfContainer/startContainer", data);
  },
  submitFlag: (data: any) => {
    return http.post("/ctfContainer/submitFlag", data);
  },
  queryContestByName: (data: any) => {
    return http.get("/ctfcontest/searchByUserName" + "?username=" + data);
  }
};
export default contestQuery;
